package com.taobao.ui.widget;

import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Group;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Text;

import com.swtdesigner.SWTResourceManager;
import com.taobao.action.HistoryAction;
import com.taobao.action.ui.LabelCursorAction;

public class ReceiveSerachWidget extends CommonWidget {
    private Text text;
    private Text text_1;

	@Override
	public String getID() {
		return "com.taobao.ui.widget.ReceiveSerachWidget";
	}
	
    
    /**
     * Create the composite.
     * 
     * @param parent
     * @param style
     */
    public ReceiveSerachWidget(Composite parent, int style) {
        super(parent, style);
        GridLayout gridLayout_5 = new GridLayout(1, false);
        gridLayout_5.marginHeight = 0;
        gridLayout_5.marginWidth = 0;
        setLayout(gridLayout_5);

        Group group = new Group(this, SWT.NONE);
        group.setText("\u5DF2\u5B8C\u6210\u4EFB\u52A1-\u67E5\u8BE2");
        GridLayout gridLayout_3 = new GridLayout(1, false);
        gridLayout_3.verticalSpacing = 0;
        group.setLayout(gridLayout_3);
        GridData gridData = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1);
        gridData.widthHint = 345;
        gridData.heightHint = 235;
        group.setLayoutData(gridData);

        Composite composite_10 = new Composite(group, SWT.NONE);
        composite_10.setLayout(new GridLayout(2, false));
        composite_10.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));

        Label label_3 = new Label(composite_10, SWT.NONE);
        label_3.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
        label_3.setText("\u53D1  \u5E03 \u65B9\uFF1A");

        text = new Text(composite_10, SWT.BORDER);
        text.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));

        Composite composite_11 = new Composite(group, SWT.NONE);
        composite_11.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));

        Composite composite_12 = new Composite(group, SWT.NONE);
        composite_12.setLayout(new GridLayout(2, false));
        composite_12.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));

        Label label_4 = new Label(composite_12, SWT.NONE);
        label_4.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
        label_4.setText("\u63A5\u624B\u5C0F\u53F7\uFF1A");

        text_1 = new Text(composite_12, SWT.BORDER);
        text_1.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));

        Composite composite_13 = new Composite(group, SWT.NONE);
        composite_13.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));

        Composite composite_14 = new Composite(group, SWT.NONE);
        composite_14.setLayout(new GridLayout(3, false));
        composite_14.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
        
        Label label = new Label(composite_14, SWT.NONE);
        label.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, true, false, 1, 1));
        label.setText("<<\u67E5\u8BE2>>");
        label.setForeground(SWTResourceManager.getColor(SWT.COLOR_BLUE));
        LabelCursorAction labelCursorAction = new LabelCursorAction(new HistoryAction(), getThis(ReceiveSerachWidget.class));
		label.addMouseTrackListener(labelCursorAction);
		label.addMouseListener(labelCursorAction);
        
        Label label_1 = new Label(composite_14, SWT.NONE);
        GridData gridData_1 = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);
        gridData_1.widthHint = 30;
        label_1.setLayoutData(gridData_1);
        
        Label label_2 = new Label(composite_14, SWT.NONE);
        label_2.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));
        label_2.setText("<<\u6E05\u7A7A>>");
        label_2.setForeground(SWTResourceManager.getColor(SWT.COLOR_BLUE));
    }

}
